package com.myaxuan.service.permissions.impl;

import com.myaxuan.entity.permissions.UserRole;
import com.myaxuan.mapper.permissions.UserRoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by pc255 on 2018/1/31.
 */
@Service
public class UserRoleServiceImpl implements UserRoleMapper {

	@Autowired
	private UserRoleMapper userRoleMapper;

	@Override
	public int deleteByPrimaryKey(String id) {
		return userRoleMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insertSelective(UserRole record) {
		return userRoleMapper.insertSelective(record);
	}

	@Override
	public UserRole selectByPrimaryKey(String id) {
		return userRoleMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(UserRole record) {
		return userRoleMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<UserRole> findAll() {
		return userRoleMapper.findAll();
	}
}
